/* const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true
}) */
/* const webpack = require('webpack'); */
//代理
module.exports = {
  /*   plugins: [
      new webpack.DefinePlugin({
        "process.env": {
          ...env
        },
        __VUE_OPTIONS_API__: false,
        __VUE_PROD_DEVTOOLS__: false
      })
    ], */
  chainWebpack: config => {
      config.optimization
      .nodeEnv(false);
  },
  //打包时去除map文件
  /* productionSourceMap:false, */
/*   optimization: {
    nodeEnv: false
  }, */
  productionSourceMap: process.env.NODE_ENV == 'test',
  // 关闭ESLINT校验工具
  /* lintOnSave: false, */
  //配置代理跨域
  devServer: {
    proxy: {
      '/api': {
        target: 'http://gmall-h5-api.atguigu.cn',
      },
    },
  },
};
